package edu.nf.ch09;

import edu.nf.ch09.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author wangl
 * @date 2025/4/29
 */
public class Main {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserController c1 = context.getBean(UserController.class);
        c1.save();
        UserController c2 = context.getBean(UserController.class);
        c2.save();
    }
}